package cn.bdqn.dao;

import cn.bdqn.pojo.Banklike;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: 苏闻君
 * @Date: Created in 2020/7/30  9:58
 */
@Mapper
public interface BanklikeDaok {
    /**
     * 查询全部收藏试题
     * @return
     */
    @Select("SELECT * FROM bank_like")
    List<Banklike> selectAll();

    /**
     * 插入收藏试题
     * @param bankid
     * @return
     */
    @Insert("INSERT INTO `study`.`bank_like` VALUES (NULL, #{bankid})")
    Integer insertbk(Integer bankid);
}
